package org.m;

import lombok.extern.slf4j.Slf4j;
import org.m.demo.Classroom;
import org.m.demo.Teacher;
import org.m.demo.student;
import org.m.demo.subject;
import org.m.example.DemoD;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
@Slf4j
public class text {
    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(text.class, args);
       //student demoD = context.getBean(student.class);
        //Classroom demoD = context.getBean(Classroom.class);
        Teacher demoD = context.getBean(Teacher.class);
        System.out.println(demoD);
        log.info("DemoA:{}",demoD);
    }
}
